/*!*********************************************************************************
 * X2Engine Open Source Edition is a customer relationship management program developed by
 * X2 Engine, Inc. Copyright (C) 2011-2019 X2 Engine Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY X2ENGINE, X2ENGINE DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 610121, Redwood City,
 * California 94061, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2 Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2 Engine".
 **********************************************************************************/




@import "standards";
@import "font-awesome";
@import "x2-icons";
@import "icons";

div.no-selection,
span.no-selection {
    -moz-user-select: none; 
    -webkit-user-select: none; 
    -ms-user-select: none; 
    -khtml-user-select: none;
}

.right-widget-title {
    display: inline-block;
}

/*
prevent menu items from moving to the next line (would prevent items from being added to more
menu with JS
*/

#main-menu {
    width: 50000px;
}

.top-bar-module-link:hover {
    background-color: #E9E9E9;
}

#search-bar-title {
    font-size: 31px;
    color: #FFFFFF;
    float: left;
    margin-left: 18px;
    margin-right: 6px;
}

#your-logo {
    height: 30px;
    font-size: 36px;
}

#your-logo.default-logo {
    position: relative;
    top: -4px;
}

#show-left-menu-button {
    cursor: pointer;
    display: none;
    float: left;
    height: 25px;
    font-size: 25px;
    width: 31px;
    margin-top: 1px;
    margin-left: 14px;
    margin-right: 5px;

    color: white;
    /* @theme color: smart_text */
}

.x2-bar {
    width: 19px;
    height: 2px;
    @include border-radius (2px);
    background-color: white;
    margin: 0px 0 5px 0;
}

html {
    height: 100%;
}

body {
    height: 100%;
    // background: #fdfdfd;
    background: $background;
    /*min-width:880px;*/
    &:before {
        content: "";
        height: 100%;
        float: left;
        width: 0;
        margin-top: -32767px;
    }
}

/*Opera Fix*/

#page-container {
    min-height: 100%;
    overflow: hidden;
}

#page {
    margin-top: 32px;
    overflow: auto;
    padding-bottom: 200px;
}

#header {
    height: 32px;
    background: #1f559b;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    &.defaultBg {
        background: #3d70b4;
    }
}

#header-inner {
    height: 31px;
    background-image: url(../images/stripes2.png);
    background-repeat: no-repeat;
    background-size: auto;
    opacity: 1;
}

.avatar-image {
    font-size: 95px;
}

/************************************************************
* Admin flash messages; displayed at the top of every page
************************************************************/

div.admin-flash-message {
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    height: 12px;
    width: 100%;
    border-bottom: 1px solid #F1D031;
    padding: 2px 0;
    position: fixed;
    left: 0;
    z-index: 1000;
    text-align: center;
    background-color: #FFFFC2;
    color: black;
}

div.admin-flash-error {
    background-color: #FF9999;
    border-bottom: 1px solid #FF3333;
}

/*********************************
* Main Menu
********************************/
@import "partials/main-menu";


/*********************************
* Dropdowns
********************************/
@import "partials/dropdown";

/* Submenu Bar */

#submenu-bar {
    clear: both;
    width: auto;
    padding: 4px 0;
    background: #333;
    a.x2-button {
        float: right;
        margin: 0 0 0 5px;
        border: none;
        line-height: 26px;
        /* padding:0 8px; */
    }
    ul {
        display: block;
        float: left;
        width: auto;
        overflow: auto;
        margin: 0;
        padding: 5px 0;
    }
    li {
        display: block;
        float: left;
        border-right: 1px solid #666;
        margin: 0 5px 0 0;
        padding: 0 5px 0 0;
        &:last-child {
            border-right: none;
        }
        a {
            color: #ccc;
            text-decoration: none;
            font-size: 14px;
            &:hover {
                color: #fff;
                text-decoration: underline;
            }
        }
        span {
            color: #fff;
            font-weight: bold;
            cursor: default;
        }
    }
}

/* color:#09F; */

#transparency-button, #fullscreen-button, #user-menu-button, #widget-button {
    position: relative;
    margin: 3px 0 0 0;
    padding: 0;
    border: none;
    text-decoration: none;
}

#transparency-button span, #fullscreen-button span, #user-menu-button span {
    display: block;
    background-image: url(../images/contrast-icon.png);
    background-position: center center;
    background-repeat: no-repeat;
    width: 28px;
}

#fullscreen-button {
    height: 25px;
    width: 25px;
    text-shadow: none;
    // background-image: url(../images/fullscreen-icon.png);
    background-image: none;
    text-decoration: none;
}

#user-menu-button {
    display: inline-block;
    margin-top: 1px;
    vertical-align: middle;
    span {
        height: 25px;
        background: url(../images/user.png) center center no-repeat;
        text-decoration: none;
    }
}

/**
 * -------------------- Notifications ---------------------
 */

#main-menu-notif {
    display: block;
    float: right;
    padding: 0;
    margin-top: 3px;
    @include border-radius (3px);
    background: #f4f6f9;
    text-decoration: none;
    text-align: center;
    font-size: 18px;
    line-height: 25px;
    
    span {
        display: block;
        padding: 0 10px;
        line-height: 25px;
        font-size: 18px;
        text-decoration: none;
        text-shadow: none;
        color: #3d70b4;
    }
}

.x2-widget {
    .widget-sort-handle {
        height: 15px;
        width: 15px;
        margin-right: -8px;
        margin-left: 2px;
    }
    &.form {
        overflow: hidden;
    }
}

#x2-hidden-widgets-menu {
    width: 130px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    /* visibility:hidden; */
    right: 5px;
    position: absolute;
    z-index: 1000;
    background: #f6f6f6;
    /* border:1px solid #666; */
    top: 40px;
    /* margin-top:6px; */
    padding: 2px;
    @include border-radius();
    @include box-shadow(0 3px 15px 2px rgba(black, 0.5));
    &:after {
        position: absolute;
        z-index: 1500;
        top: -6px;
        right: 99px;
        display: inline-block;
        @include dropdown-corner-borders();
    }
}

.widget-icon {
    height: 25px;
    width: 25px;
    text-shadow: none;
    // line-height: 
    // background: url(../images/widgets.png) no-repeat center center transparent;
}



span.x2-hidden-widgets-menu-item.ui-draggable {
    padding: 0 10px;
}

#x2-hidden-widgets-menu {
    li span.x2-hidden-widgets-menu-item:hover {
        background: #eee;
    }
    ul {
        padding-left: 0px;
        list-style-type: none;
    }
    li span.x2-hidden-widgets-menu-item {
        padding-left: 10px;
        font-weight: normal;
        color: #000;
        font-size: 15px;
        line-height: 25px;
        text-shadow: none;
        cursor: pointer;
    }
}

.x2-hidden-widgets-menu-item.ui-draggable-dragging {
    background: white;
    border: 1px solid #CCC;
    @include border-radius (4px);
}

.x2widget-header {
    cursor: pointer;
}

.x2-hidden-widgets-menu-divider {
    border-top: 1px solid #CCC;
    margin: 2px 5px;
    height: 0px;
}

.x2-tag-list {
    min-height: 25px;
}

#notif-box-shadow-correct {
    width: 440px;
    height: 40px;
    display: block;
}

#notif-box {
    display: none;
    width: 400px;
    min-height: 50px;
    padding: 0 2px;
    /* min-height:60px; */
    top: 40px;
    position: absolute;
    right: 160px;
    z-index: 2000;
    background: white;
    -moz-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
    
    @include border-radius(2px);

    &:after {
        position: absolute;
        z-index: 1500;
        top: -6px;
        right: 12px;
        display: inline-block;
        border-right: 6px solid transparent;
        border-bottom: 6px solid #f6f6f6;
        border-left: 6px solid transparent;
        content: '';
    }

    .notif {
        position: relative;
        overflow: auto;
        padding: 1px 5px;
        margin-bottom: 5px;
        @include border-radius (2px);
    }
}

#notifications .notif {
    &.unviewed {
        background: #eef0ff;
        font-weight: bold;
    }
    .msg {
        float: left;
        margin-right: 15px;
    }
    .close {
        position: absolute;
        right: 4px;
        top: 0;
        font-weight: bold;
        font-size: 14px;
        line-height: 14px;
        cursor: pointer;
        text-decoration: none;
    }
}

#no-notifications {
    padding: 2px;
    height: 30px;
}

#notif-view-all {
    float: left;
    margin-right: 5px;
    display: block;
    padding: 2px 2px 4px 2px;
}

#notif-clear-all {
    display: block;
    padding: 2px 2px 4px 2px;
}

#notif-view-all a, #notif-clear-all a {
    color: #555555;
    text-decoration: none;
}

#notif-view-all a:hover, #notif-clear-all a:hover {
    color: #3d70b4;
    text-decoration: none;
}

.notif {
    overflow: hidden !important;
}

/**
 * ------------------------ Body --------------------------
 */

#page-body {
    /* clear:both; */
    /* background:#efeee8; */
    /* overflow:auto; */
    padding-bottom: 50px;
    /* margin:0; */
    /* padding-top:10px; */
    /* background:#fff; */
    /* border:none; */
}

/* #sidebar-left-container {float:left;width:150px;background:none;} */

#actions {
    margin-bottom: 0;
}

.sidebar-left {
    background: white;
    width: 150px;
    clear: left;
    margin: 0px 0px 20px 20px;
    border: 1px solid #e0e0e0;
    float: left;
    
    @include border-radius (2px);
    
    > .left-widget-collapsed + div {
        background: #F5F5F5;
    }
    * {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: -moz-none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Left sidebar */

/*
Remove border radius from left widget title bars which are preceded by a collapsed left widget
*/

/* .sidebar-left {
    margin-top:5px;
    border-radius:          4px;
    -moz-box-shadow:        0 1px 6px rgba(0,0,0,0.5);
    -webkit-box-shadow:     0 1px 6px rgba(0,0,0,0.5);
    box-shadow:             0 1px 6px rgba(0,0,0,0.5);
} */

#main-menu-bar {
    a, span, img {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: -moz-none;
        -ms-user-select: none;
        user-select: none;
    }
}

.sidebar-left #recent-items a, #sidebar-left #top-contacts-list a, #main-menu-bar #notif-box *, #search-bar span, #search-bar-box {
    -webkit-touch-callout: text;
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#type-filter {
    text-align: center;
}

/**
 * CSS for FilterControls
 */
.sidebar-left .filter-control-button {
    width: 110px;
    text-align: center;

    &:hover {
        @include fa-icon('sort') {
            text-decoration: none;
            float: left;
            opacity: 0.5;
            font-size: 100%;
            position: relative;
            top: 7px;
            margin-left: -10px;
            left: 7px;
        };
    }

    // &:hover:before {
    //     /* background: red; */
    //     width: 1px;
    //     height: 9px;
    //     content: '';
    //     float: left;
    //     display: inline;
    //     position: relative;
    //     top: 6px;
    //     margin-left: -3px;
    //     border: 1px dotted grey;
    //     cursor: grab;
    // }
}

#top-contacts-list > li > a {
    width: auto;
    padding: 9px 8px;
}

/**
 * ----------------------- Portlets -----------------------
 */

.portlet {
    padding: 0;
    @include border-radius (2px);
}

.portlet-decoration {
    padding: 1px;
    background: white;
    text-align: center;
    
    @include border-radius (2px 2px 0 0);

}

/* .portlet:first-child .portlet-decoration {
    border-radius:          4px 4px 0 0;
} */

.portlet-title {
    display: block;
    font-size: 8pt;
    font-weight: bold;
    line-height: 18px;
    color: #555555;
    cursor: default;
    
    .gear-img-container, .portlet-minimize > a {
        @include titleBarIconButton;
    }
}

.portlet-content {
    //padding: 5px 10px;
    padding: 12px;
    overflow: auto;
    background: #fff;
    clear: both;
}

#sidebar-right .portlet-content, .sidebar-left > div:last-child > .portlet-content {
    @include border-radius (0 0 2px 2px);
}

/* .portlet:last-child .portlet-content {
    border-radius:          0 0 4px 4px;
} */

.portlet-content {
    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    li {
        margin: 0 0 5px 0;
        color: #555555;
    }
}

.dropdown .gear-img-container {
    float: left;
    opacity: 0.7;
    cursor: pointer;
    // line-height: 100%;
    font-size: 120%;
    margin: 0px;
    padding-top: 5px;
    padding-right: 0px;
    padding-left: 1px;

    &:hover {
        opacity: 1.0;
    }
}


#flexible-content {
    /* margin-right:20px; */
    min-height: 0;
    overflow: hidden;
    zoom: 1;
    /*margin-top: 5px;*/
}

#sidebar-left-widget-box {
    margin-top: 20px !important;
    .portlet-decoration i {
        @include titleBarIconButton;
    }
}

/*#sidebar-left-widget-box {
        float: left;
        margin-left: -60px;
}*/

#sidebar-right {
    margin: 0px 20px 20px 0px;
    z-index: 100;
    width: 22%;
    float: right;
    padding-bottom: 10px;
    
    @include border-radius ();
    
    .portlet {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
    }
}

#content-container {
    overflow: hidden;
    zoom: 1;
}

#content {
    margin: 0px;
    border: 1px solid #e0e0e0;

    &.no-backdrop {
        padding-bottom: 0px;
        margin: 0px;
        margin-left: 20px;
    }

    &:not(.no-backdrop) {
        margin-bottom: 3px;
        margin: 0px;
        margin-left: 20px;
        margin-right: 20px;
        
        &:after {
            content: ' ';
            clear: both;
        }
    }

    .no-backdrop {
        overflow: visible;
    }

    @include border-radius ();
    background: #fff;
}

#content-container-inner {
    box-shadow: none;
    border-top: none;
    
    @include border-radius (0 0 2px 2px);
}

#content-fullscreen {
    position: relative;
    padding: 0 10px 20px 10px;
    margin: 5px 10px 10px 0;
}

#content.x2-layout-island {
    margin-top: -5px;
}


/*********************************************************
*                      Page title
********************************************************/
@import "partials/page-title";

/*
duplicated css for browsers which don't support media queries
*/

body.no-widgets {
    #content-container {
        padding-right: 0;
        margin-right: 0;
    }
    #sidebar-right {
        display: none;
    }
}

.no-widgets {
    div {
        &.page-title-fixed-outer div.page-title {
            margin-right: -21px;
        }
        &.page-title-fixed-inner {
            padding-right: 0 !important;
        }
    }
    .x2-gridview-fixed-top-bar-inner {
        padding-right: 0 !important;
    }
    div {
        &.page-title-fixed-outer {
            padding-right: 5px;
        }
        &.page-title-fixed-inner {
            padding-right: 0 !important;
        }
    }
    .x2-gridview-fixed-top-bar-inner {
        padding-right: 0 !important;
    }
    div.page-title-fixed-outer {
        padding-right: 5px;
    }
}

@media (max-width: 658px) {
    div {
        &.page-title-fixed-outer div.page-title {
            margin-right: 0px;
        }
        &.page-title-fixed-inner {
            padding-right: 0 !important;
        }
    }
    .x2-gridview-fixed-top-bar-inner {
        padding-right: 0 !important;
    }
    div.page-title-fixed-outer {
        padding-right: 5px;
    }
    #content-container {
        padding-right: 0;
        margin-right: 0;
    }
    #sidebar-left-widget-box {
        display: none;
    }
    #sidebar-right {
        display: none;
    }
    div.page-title-fixed-inner, .x2-gridview-fixed-top-bar-inner {
        padding-right: 0 !important;
    }
    div.page-title-fixed-outer {
        padding-right: 5px;
    }
}

.half-width div.page-title-fixed-outer div.page-title {
    margin-right: 35%;
}

div.page-title h2, table.fc-header h2 {
    display: inline;
    font-weight: bold;
    color: #555555;
    margin: 0 10px;
    font-size: 18px;
}

/***********************************************************************
* calendar overrides 
***********************************************************************/

.fc-content .ui-widget-header {
    background: none;
}

table.fc-header {
    td.fc-header-right {
        padding-right: 5px;
    }
    .fc-button {
        margin: 3px 0 0 0;
        height: 24px;
        line-height: 25px;
    }
    .fc-header-space {
        padding-left: 5px;
    }
}

.fc-button-prev {
    @include border-radius (4px 0 0 4px);
    border-right: none;
    margin-right: 0px;
}

.fc-button-next {
    @include border-radius (0px 4px 4px 0px);
}

div {
    &.page-title {
        h2 .no-bold {
            /* font-weight:normal; */
            color: #666;
        }
        .summary {
            /* color:#eee; */
            margin-right: 2px;
        }
        .title-bar {
            float: right;
            color: #555;
            display: inline-block;
            vertical-align: middle;
            a {
                text-decoration: none;
                cursor: pointer;
            }
        }
        .summary a, .x2-hint {
            text-decoration: none;
            cursor: pointer;
        }
        .title-bar a:hover, .summary a:hover, .x2-hint:hover {
            // color: #0070FF;
            text-shadow: none;
        }
    }
    &.form .x2-hint:hover {
        color: #0070FF;
        text-shadow: none;
    }
    &.page-title {
        .title-bar .x2-button {
            color: #000;
            margin-top: 4px;
            &:hover {
                color: #000;
                text-decoration: none;
            }
        }
        div.form select {
            /*border:none;*/
        }
        .x2-button-group {
            display: inline-block;
            /*margin:0 5px 0 0;*/
            margin: 0;
        }
        > .x2-button {
            vertical-align: middle;
            margin: 5px 5px 0 0;
            padding: 0 5px;
        }
    }
}

/* div.page-title .x2-button {padding:1px 15px;border:1px solid #888;margin:3px 0 0 5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;} */
/* div.page-title .form .x2-button{border: 1px solid #999} */

.responsive-menu-items > .x2-button {
    vertical-align: middle;
    margin: 5px 5px 0 0;
    padding: 0 5px;
}

.page-title .x2-button-group .x2-button {
    margin: 1px 0px 0 0;
}

.x2-button.icon {
    span {
        width: 26px;
    }
    &.edit {
        height: 24px;
        @include fa-icon("edit") {
            font-size: 150%;
            padding: 5px;
            position: relative;
        };
        // background: url(../images/icons/Edit.png) center center no-repeat;
    }
    &.map {
        height: 24px;
        @include fa-icon("crosshairs") {
            font-size: 150%;
            padding: 5px;
            position: relative;
        };
    }
}

.x2-edit-icon {
    background: url(../images/icons/Edit.png) center center no-repeat;
}

div {
    &.page-title {
        .x2-button {
            &.icon {
                &.edit2 span {
                    background: url(../images/icons/Edit2.png) center center no-repeat;
                    background-size: contain;
                }
                &.sync span {
                    background: url(../images/icons/Sync.png) center center no-repeat;
                }
                &.copy span {
                    @include fa-icon('copy');
                    // background: url(../images/icons/Copy.png) center center no-repeat;
                }
                &.email {
                    @include fa-icon('envelope') {
                        font-size: 180%;
                        position: relative;
                        top: 3px;                        
                    }
                    margin-top: 5px;
                }
            }
            &.search-button span {
                background: url(../images/icons/search-button.png) 5px center no-repeat;
            }
        }
        .filter-button span {
            @include fa-icon("filter") {
                font-size: 150%;
            }
            // @extend .fa;
            // background: url(../images/icons/filter-button.png) center center no-repeat;
        }
    }
    &.title-bar .x2-button.column-selector-link span {
        background: url(../images/icons/columns-button.png) center center no-repeat;
    }
    &.page-title .x2-button {
        &.column-selector-link span {
            background: url(../images/icons/columns-button.png) center center no-repeat;
        }
        &.auto-resize-button span {
            background: url(../images/icons/resize.png) center center no-repeat;
        }
        &.search-button span {
            background: url(../images/icons/search-button.png) 5px center no-repeat;
        }
        .filter-button span {
            // @extend .fa;
            // background: url(../images/icons/filter-button.png) center center no-repeat;
        }
    }
    &.title-bar .x2-button.column-selector-link span {
        background: url(../images/icons/columns-button.png) center center no-repeat;
    }
    &.page-title .x2-button {
        &.column-selector-link span {
            background: url(../images/icons/columns-button.png) center center no-repeat;
        }
        &.auto-resize-button span {
            background: url(../images/icons/resize.png) center center no-repeat;
        }
        &.right {
            display: block;
            vertical-align: top;
            margin: 5px 5px 0 0;
        }
        &.left {
            display: block;
            vertical-align: top;
            margin: 5px 5px 0 0;
        }
    }
    &.grid-top-bar .x2-button span, &.page-title .x2-button span {
        display: block;
        height: 24px;
        width: 24px;
    }
}

/*div.page-title .x2-button.icon.email span {background:url(../images/icons/email-button.png) left center no-repeat;}*/

.x2-button.icon span {
    display: block;
    height: 24px;
    width: 24px;
}

.icon.email {
    width: 30px;
    span {
        width: 35px !important;
        margin-top: 0px;
        background-size: cover !important;
    }
}

/**
 * ------------ Fullscreen (no widgets) Rules -------------
 */

#content-fullscreen div.page-title {
    margin-bottom: 5px;
    @include border-radius (4px);
    border: 1px solid #666;
}

#footer {
    box-sizing: border-box;
    // position: relative;
    margin-top: -90px;
    height: 90px;
    clear: both;
    text-align: center;
    padding: 5px 10px;
    color: #333;
    font-size: 10px;
    clear: both;
    background: #efeee8;
    /* background: rgba(255,255,255,0.5); */
    &.defaultBg {
        border-top: 1px solid #ccc;
        color: #999;
        background: #efeee8;
        background: #efeee8;
        /* Old browsers */
        background: -moz-linear-gradient(top, #f7f7f7 0%, #efeee8 100%);
        /* FF3.6+ */
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f7f7f7), color-stop(100%, #efeee8));
        /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(top, #f7f7f7 0%, #efeee8 100%);
        /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(top, #f7f7f7 0%, #efeee8 100%);
        /* Opera 11.10+ */
        background: -ms-linear-gradient(top, #f7f7f7 0%, #efeee8 100%);
        /* IE10+ */
        background: linear-gradient(to bottom, #f7f7f7 0%, #efeee8 100%);
        /* W3C */
    }

    a {
        color: #175CA3;
        &:hover {
            color: #8dbff2;
        }
    }

    .hr {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.25);
        clear: both;
        float: none;
        width: 100%;
        height: 0px;
        margin: 0 0 1em;
    }

    #login-page & {
        color: #333;
    }
}

#powered-by-x2engine {
    margin: 5px 0 0 0;
}


#page-fader {
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 0;
    padding: 0;
    border: none;
    span {
        background: url(../images/contrast-icon.png) center center no-repeat;
        height: 24px;
        width: 24px;
        display: block;
    }
}

#response-time {
    margin: 0 0 5px 0;
    /* position:absolute;bottom:5px;left:10px; */
}

.x2-hint {
    // color: #06C;
    cursor: default;
}

.x2-hint-asterisk {
    line-height: 0;
    font-size: 20px;
    position: relative;
    top: 7px;
}

/* for layout sections positioned outside of the layout tray */

.x2-layout-island {
    /* @theme background: content */
    
    margin: 0px 20px 20px 0px !important;
    border: 1px solid #e0e0e0 !important;
    background-color: white;
    
    @include border-radius (2px);

    &.x2-layout-island-merge-bottom {
        border-bottom: none;
        @include border-radius (2px 2px 0px 0px);
    }
    &.x2-layout-island-merge-top {
        border-top: none;
        @include border-radius (0px 0px 2px 2px);
    }
    &.x2-layout-island-merge-top-bottom {
        border-top: none;
        border-bottom: none;
        @include border-radius (0);
    }
}

#campaign-attachments-wrapper {
    @include standard-box-shadow ();
}

/***********************************************************************
* scroll bars 
***********************************************************************/

body {
    -ms-overflow-style: scrollbar;
}

::-webkit-scrollbar {
    height: 10px;
    &:vertical {
        width: 10px;
    }
}

::-webkit-scrollbar-track {
    &:horizontal {
        border-top: 1px solid rgb(230, 230, 230);
    }
    border-left: 1px solid rgb(230, 230, 230);
}

::-webkit-scrollbar-thumb {
    background-color: rgb(216, 216, 216);
}

.single-column-layout-content {
    max-width: 1550px;
    .page-title-island {
        @include border-radius (4px);
        margin-bottom: 5px;
    }
}

.admin-form-container {
    max-width: 630px;
}

body.disable-mobile-layout {
    min-width: 888px;
    #header {
        min-width: 888px;
    }
    &.no-widgets .page-title-fixed-inner > div {
        min-width: 716px;
    }
    .page-title.icon.profile > h2 {
        float: left;
    }
}

/***********************************************************************
* iframes
***********************************************************************/

#action-frame, #x2-view-email-dialog > iframe {
    border: none;
}

.only-in-edition {
    opacity: 0.5;
}

#content {
    .page-title {
        @include border-radius (2px 2px 0px 0px);
    }
    .page-title-fixed-inner > .page-title {
        @include border-radius (0 0 2px 2px);
    }
    .x2-gridview-fixed-top-bar-outer .x2-gridview-fixed-top-bar-inner > .page-title {
        @include border-radius (0);
        
        border-top: 1px solid #e0e0e0;
        margin-top: 5px;
    }
    .x2-gridview-fixed-top-bar-inner > .page-title {
        @include border-radius (2px 2px 0px 0px);
    }
}

.fix-y {
    position: absolute;
}

/***********************************************************************
* flashes 
***********************************************************************/

.fixed-flashes-container {
    position: fixed;
    opacity: 0.9;
    bottom: 10px;
}

.flashes-container {
    margin-left: 5px;
    margin-top: 5px;
    margin-right: 5px;
    > div {
        margin-top: 5px;
    }
    .flash-list-header {
        margin-bottom: 4px;
    }
    .x2-gridview-flashes-list {
        clear: both;
        margin-bottom: 5px;
    }
}

.flashes-container-close-button {
    position: absolute;
    right: 10px;
}

.flashes-container {
    .flash-list-left-arrow, .flash-list-down-arrow {
        margin-left: 6px;
        margin-top: 3px;
    }
}

.x2-flashes-list {
    margin-top: 4px;
    margin-bottom: 0;
}

.x2-flashes-list-no-style {
    list-style-type: none;
    padding-left: 0;
}

/***********************************************************************
* Class to remove backdrop
***********************************************************************/
.no-backdrop {
    background: none !important;
}


/***********************************************************************
* grid layout 
***********************************************************************/

.x2-col {
    float: left;
}

/***********************************************************************
* IE8 banner
***********************************************************************/

.ie-banner {
    width: 100%;
    text-align: center;
}

/***********************************************************************
* action menu 
***********************************************************************/

#view-record-action-menu-item {
    i {
        float: right;
        color: gray;
    }
    input[type='checkbox'] {
        position: relative;
        top: 2px;
        margin-right: 3px;
    }
}


/***********************************************************************
* Divider
***********************************************************************/
.x2-divider {
    display: block;
    width: 100%;
    height: 0px;

    border-top: 1px solid $lightGray;

    margin-top: 15px;
    margin-bottom: 15px;

    /* @theme border-color: border */

}
.detail-view {
    a {
        color: #555555;
    }
}


/************************************************
* Google Drive IFrame
*************************************************/

iframe.google-drive {
    border: none;
    background: transparent;
}
